package com.xrit.sunnyday.service;

import com.xrit.sunnyday.entity.PageResult;
import com.xrit.sunnyday.entity.QueryPageBean;
import com.xrit.sunnyday.exception.SunnydayException;
import com.xrit.sunnyday.pojo.Role;

public interface RoleService {

    /*
     * 分页查询
     * */
    PageResult findPage(QueryPageBean queryPageBean);

    /*
     * 通过id查询
     * */
    Role findById4Edit(int id);

    //    添加角色与权限
    void RoleAdd(Role role, Integer[] permissionIds, Integer[] menus);

    //    删除角色
    void RoleDelete(Integer id) throws SunnydayException;

    //    根据角色ID修改角色信息
    void RoleUpdate(Role role, Integer[] permissionIds, Integer[] menus);
}
